home *** CD-ROM | disk | FTP | other *** search
-
-
- #include "More IE Routines.h"
- #include "BigEasyDialogs.h"
-
-
- void SetMasterTuneDoc(short n,short menuItem, short menuRef)
- {
- TDoc *d;
- Boolean x;
- Fixed tune;
-
- d = &gDoc[n - kFirstDocWindow];
-
- tune = MusicGetMasterTune(d->ci);
-
- FlashResult(tune);
-
- x = EasyDialogGetNumber("\pRecall Instrument",
- "\pRecall instrument number:",
- &d->recallInstrument);
-
- if(x)
- {
- ComponentResult result;
- result = MusicSetMasterTune(d->ci,tune);
- FlashResult(result);
- }
- }
-
-
- void SetDefaultInstrumentDoc(short n,short menuItem, short menuRef)
- {
- TDoc *d;
- short i;
- long t;
-
- d = &gDoc[n - kFirstDocWindow];
-
- for(i = 0; i < d->instrumentKnobCount; i++)
- {
- MusicSetPartKnob(d->ci,d->part,i+1,(*d->ikdList)[i].defaultValue);
- }
-
- MusicSetPartName(d->ci,d->part,"\pDefault Instrument");
- MusicGetPartName(d->ci,d->part,d->instrumentName);
- DrawStats(d);
-
- UpdateSliderKnobs(d);
- }
-
-
-